package com.qf.application;

import org.springframework.amqp.core.FanoutExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {

    //配置RabbitMQ的交换机
    @Bean
    public FanoutExchange getExchange(){
        return new FanoutExchange("hotal_exchange", true, false);
    }

}
